package com.ych.modules.base.dbEntity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2020/12/12
 * Time: 10:27
 * Description:
 */
@Data
@TableName("t_sys_area_info")
@ApiModel(value = "TSysAreaInfoEntity", description = "数据库-区域信息（省市县）表")
public class TSysAreaInfoEntity implements Serializable {
    @TableId(value = "id")
    @ApiModelProperty(value = "主键", dataType = "String", notes = "主键")
    private String id;

    @TableField("area_code")
    @ApiModelProperty(value = "区域编码", dataType = "String", notes = "区域编码")
    private String areaCode;

    @TableField("area_name")
    @ApiModelProperty(value = "区域名称", dataType = "String", notes = "区域名称")
    private String areaName;

    @TableField("parent_id")
    @ApiModelProperty(value = "父级编码", dataType = "String", notes = "父级编码")
    private String parentId;

    @TableField("level")
    @ApiModelProperty(value = "层级 1：省 2：市 3：区县", dataType = "Integer", notes = "层级 1：省 2：市 3：区县")
    private Integer level;
}
